package com.example.composableexample.drawer

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccountCircle
import androidx.compose.material.icons.filled.Email
import androidx.compose.material.icons.filled.Home
import androidx.compose.material.icons.filled.Info
import androidx.compose.ui.graphics.vector.ImageVector

/**
 * author: LiLiang
 * createTime: 2022/9/30-19:44
 * remark: 页面路由信息
 **/

sealed class AppScreens(val title: String, val route: String, var icon: ImageVector) {
        object HomeScreen: AppScreens("主页", "homeScreen", Icons.Default.Home)
        object EmployeeScreen: AppScreens("部门", "employeeScreen", Icons.Default.Home)
        object EmployeeDetailScreen: AppScreens("部门详情", "employeeDetailScreen", Icons.Default.Home)
        object AccountScreen: AppScreens("账户", "AccountScreen", Icons.Default.AccountCircle)
        object ContactScreen: AppScreens("联系我们", "ContactScreen", Icons.Default.Email)
        object HelpScreen: AppScreens("帮助", "HelpScreen", Icons.Default.Info)

    fun routeWithArgs(vararg args: String): String {
        return buildString {
            append(route)
            args.forEach { arg ->
                append("/$arg")
            }
        }
    }
}